Skip to content

Add plugin Typora v1.0.0#296

Merged
lzx8589561 merged 6 commits into
ZToolsCenter:mainfrom
xuanyuanzhenren:plugin/recent-typora
Jul 7, 2026
Merged

Add plugin Typora v1.0.0#296
lzx8589561 merged 6 commits into
ZToolsCenter:mainfrom
xuanyuanzhenren:plugin/recent-typora

Conversation

@xuanyuanzhenren

@xuanyuanzhenren xuanyuanzhenren commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

插件信息

  • 名称: Typora
  • 插件ID: recent-typora
  • 版本: 1.0.0
  • 描述: 按最近打开顺序列出 Typora 的文件和文件夹
  • 作者: 轩辕真人
  • 类型: 新增

本次变更

Recent Typora插件首个发布版本。

新增

  • 只读访问 Typora 的 history.data, 按最近打开顺序列出 Typora 的最近打开的文件和文件夹
  • 自动查找 Typora 路径,使用 Typora 打开插件列出的文件或文件夹

截图 / 演示

自检清单

  • plugin.json 的 name / title / version / description / author 字段均已检查
  • 已移除调试日志、未使用文件、敏感信息(.env、token、密钥等)
  • 本次 PR 的 diff 仅涉及 plugins/recent-typora/ 目录
  • 已在本地 ZTools 客户端实际加载并测试过此插件,主要功能正常
  • 同意以仓库声明的开源协议发布此插件

此 PR 由 ztools-plugin-cli 自动管理:每次 ztools publish 在分支上追加一个 commit,PR 链接保持不变。

- Initial commit v1.0.0
- fix:根目录地址为空和JSON.parse的类型检查 v1.0.0
- Initial commit v1.0.0
- fix:根目录地址为空和JSON.parse的类型检查 v1.0.0
- fix:修正package.json中的description
- Initial commit v1.0.0
- fix:根目录地址为空和JSON.parse的类型检查 v1.0.0
- fix:修正package.json中的description
- fix:若干鲁棒性问题 v1.0.0
@xuanyuanzhenren xuanyuanzhenren marked this pull request as ready for review July 7, 2026 08:49
@xuanyuanzhenren

Copy link
Copy Markdown
Contributor Author
screen_photo

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new ZTools plugin, recent-typora, which reads and parses Typora's history.data to list and open recently accessed files and folders across Windows, macOS, and Linux. The review feedback suggests treating macOS as case-insensitive during path deduplication to prevent duplicate entries, and wrapping the local history file test in a try...catch block to avoid unexpected test failures on developers' machines.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread plugins/recent-typora/preload.js Outdated
Comment thread plugins/recent-typora/test.js Outdated
- Initial commit v1.0.0
- fix:根目录地址为空和JSON.parse的类型检查 v1.0.0
- fix:修正package.json中的description
- fix:若干鲁棒性问题 v1.0.0
- fix:macos路径大小写问题 v1.0.0
- Initial commit v1.0.0
- fix:根目录地址为空和JSON.parse的类型检查 v1.0.0
- fix:修正package.json中的description
- fix:若干鲁棒性问题 v1.0.0
- fix:macos路径大小写问题 v1.0.0
- 更新README.md和title v1.0.0
@lzx8589561 lzx8589561 merged commit 47d21a2 into ZToolsCenter:main Jul 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants